/*
 This file 'textarea' is part of Firebird Integrated Solution 1.0

 Copyright (c) 2015 Lincong

 Contact:  
        Email: lincong1987@gmail.com

        QQ: 159257119
 
 See Usage at http://www.jplatformx.com/firebird

 Create date: 2015-03-05 13:35
 */
.fb-ui-textarea {
    border: 1px solid #ccc;
    border-color: #C0C0C0 #D9D9D9 #D9D9D9;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    //	overflow: hidden;
    vertical-align: middle;
    width: 222px;
    height: 50px;
    background: #FFF;
    transition: all .3s cubic-bezier(.645, .045, .355, 1);
    .fb-ui-textarea-input {      
	box-sizing: border-box;
	position: absolute;
	width: 100%;
	height: 100%;
	padding: 4px 10px;
	border: none 0;
	font-size: 12px;
	top: 0;
	left: 0;
	z-index: 10;
	background: transparent;
	resize: none;
	word-wrap: break-word;
	&:focus {
	    outline: none;
	}
    }
    
    
    .fb-ui-textarea-ie8-container {
	font: 400 11px system-ui;
	position: absolute;
	background-color: #f6f6f6;
	padding: 4px 10px;
	white-space: normal;
	overflow-wrap: break-word;
	color: #000;
	display: block;
	overflow: auto;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
    }

    .fb-ui-textarea-placeholder {
	position: absolute;
	top: 4px;
	left: 10px;
	color: #DDD;
	z-index: 9;
	font-size: 12px;
    }

    .msg-box {
	position: absolute;
	left: 100%;
	z-index: 99999;
	&.n-top {
	    left: 0;
	}
    }

    &.fb-ui-textarea-hover {
	border-color: (#4D90FE / 0.8);
    }

    &.fb-ui-textarea-focus {
	border-color: #4D90FE;
	.fb-ui-textarea-placeholder {

	}
    }

    &.fb-ui-textarea-disabled {
	border-color: #ccc;
	background: #eee;
	cursor: not-allowed;
	.fb-ui-textarea-input {
	    color: #333;
	    background: transparent;
	    cursor: not-allowed;
	}
    }

    &.fb-ui-textarea-readonly {
	border-color: #ccc;
	background: #eee;
	cursor: not-allowed;
	.fb-ui-textarea-input {
	    color: #333;
	    background: transparent;
	    cursor: not-allowed;
	}
    }

    &.fb-ui-textarea-error {
	border-color: red;
    }

    &.fb-ui-textarea-valid {
	border-color: #15A532;
    }
    &.fb-ui-textarea-invalid {
	border-color: red;
    }
}